﻿namespace XiamenQudianCoffee.model
{
    public class WuLiaoCoffeeSel
    {
        private static WuLiaoCoffeeSel instance;
        private WuLiaoCoffeeSel() { }

        public static WuLiaoCoffeeSel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new WuLiaoCoffeeSel();
                }
                return instance;
            }
        }
        /// <summary>
        /// 水检测1
        /// </summary>
        public bool Water1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测2
        /// </summary>
        public bool Water2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测3
        /// </summary>
        public bool Water3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测4
        /// </summary>
        public bool Water4_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水检测5
        /// </summary>
        public bool Water5_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警1
        /// </summary>
        public bool WaterYBJ1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警2
        /// </summary>
        public bool WaterYBJ2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警3
        /// </summary>
        public bool WaterYBJ3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警4
        /// </summary>
        public bool WaterYBJ4_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 水预报警5
        /// </summary>
        public bool WaterYBJ5_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测1
        /// </summary>
        public bool Levulose1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测2
        /// </summary>
        public bool Levulose2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测3
        /// </summary>
        public bool Levulose3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测4
        /// </summary>
        public bool Levulose4_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测5
        /// </summary>
        public bool Levulose5_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖检测6
        /// </summary>
        public bool Levulose6_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 牛奶检查1
        /// </summary>
        public bool Milk1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 牛奶检测2
        /// </summary>
        public bool Milk2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯检测1
        /// </summary>
        public bool Cup1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 杯预报警
        /// </summary>
        public bool CupYBJ_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 盖检测1
        /// </summary>
        public bool Lid1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 盖检测2
        /// </summary>
        public bool Lid2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 盖检测3
        /// </summary>
        public bool Lid3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐检测1
        /// </summary>
        public bool OutMealCup1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 出餐检测2
        /// </summary>
        public bool OutMealCup2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 接杯成功检测1
        /// </summary>
        public bool TakeCup1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖成功检测1
        /// </summary>
        public bool LidOffSuccess1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖成功检测2
        /// </summary>
        public bool LidOffSuccess2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖成功检测3
        /// </summary>
        public bool LidOffSuccess3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 豆检测1
        /// </summary>
        public bool CoffeeBean1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 豆检测2
        /// </summary>
        public bool CoffeeBean2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置1
        /// </summary>
        public bool PrestoredPosition1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置2
        /// </summary>
        public bool PrestoredPosition2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置3
        /// </summary>
        public bool PrestoredPosition3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置4
        /// </summary>
        public bool PrestoredPosition4_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置5
        /// </summary>
        public bool PrestoredPosition5_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置6
        /// </summary>
        public bool PrestoredPosition6_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置7
        /// </summary>
        public bool PrestoredPosition7_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置8
        /// </summary>
        public bool PrestoredPosition8_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 预存位置9
        /// </summary>
        public bool PrestoredPosition9_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置上1
        /// </summary>
        public bool LidOffPositionUP1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置中1
        /// </summary>
        public bool LidOffPositionMiddle1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置下1
        /// </summary>
        public bool LidOffPositionDown1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置前1
        /// </summary>
        public bool LidOffPositionFront1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置后1
        /// </summary>
        public bool LidOffPositionBehind1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置上2
        /// </summary>
        public bool LidOffPositionUP2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置中2
        /// </summary>
        public bool LidOffPositionMiddle2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置下2
        /// </summary>
        public bool LidOffPositionDown2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置前2
        /// </summary>
        public bool LidOffPositionFront2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置后2
        /// </summary>
        public bool LidOffPositionBehind2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置上3
        /// </summary>
        public bool LidOffPositionUP3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置中3
        /// </summary>
        public bool LidOffPositionMiddle3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置下3
        /// </summary>
        public bool LidOffPositionDown3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置前3
        /// </summary>
        public bool LidOffPositionFront3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖位置后3
        /// </summary>
        public bool LidOffPositionBehind3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆上到位1
        /// </summary>
        public bool PushRodUP1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆下到位1
        /// </summary>
        public bool PushRodDown1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆上到位2
        /// </summary>
        public bool PushRodUP2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 推杆下到位2
        /// </summary>
        public bool PushRodDown2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 称重1
        /// </summary>
        public bool Weigh1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 称重2
        /// </summary>
        public bool Weigh2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落杯反馈1
        /// </summary>
        public bool DropCup1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖反馈1
        /// </summary>
        public bool LidOff1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖反馈2
        /// </summary>
        public bool LidOff2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 落盖反馈3
        /// </summary>
        public bool LidOff3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 安全光栅1
        /// </summary>
        public bool BANNER1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 安全光栅2
        /// </summary>
        public bool BANNER2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 压盖放杯1
        /// </summary>
        public bool GlandCup1_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 压盖放杯2
        /// </summary>
        public bool GlandCup2_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 压盖放杯3
        /// </summary>
        public bool GlandCup3_Sel_Bol { get; set; } = false;
        /// <summary>
        /// 果糖1
        /// </summary>
        public double SugarInit1 { get; set; } = 0;
        /// <summary>
        /// 果糖2
        /// </summary>
        public double SugarInit2 { get; set; } = 0;
        /// <summary>
        /// 果糖3
        /// </summary>
        public double SugarInit3 { get; set; } = 0;
        /// <summary>
        /// 果糖4
        /// </summary>
        public double SugarInit4 { get; set; } = 0;
        /// <summary>
        /// 果糖5
        /// </summary>
        public double SugarInit5 { get; set; } = 0;
        /// <summary>
        /// 果糖6
        /// </summary>
        public double SugarInit6 { get; set; } = 0;
        /// <summary>
        /// 咖啡机故障
        /// </summary>
        public bool CoffeeWarn { get; set; } = false;
        /// <summary>
        /// 机器人故障
        /// </summary>
        public bool RobotWarn { get; set; } = false;
        /// <summary>
        /// 制冰机故障
        /// </summary>
        public bool Ice1_Bol { get; set; } = false;
        /// <summary>
        /// 制冰机故障
        /// </summary>
        public bool Ice2_Bol { get; set; } = false;
        /// <summary>
        /// 弃杯前
        /// </summary>
        public bool GiveUPBefor { get; set; } = false;
        /// <summary>
        /// 弃杯后
        /// </summary>
        public bool GiveUPAfter { get; set; } = false;
    }
    public class MessageClientList
    {
        private static MessageClientList instance;
        private MessageClientList() { }
        public static MessageClientList Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new MessageClientList();
                }
                return instance;
            }
        }
        /// <summary>
        /// 触发事件名   /// Reload_L  Reload_R
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 状态  0 关状态  1 开状态 2 已开机 3 上电 4 下电 5 已使能 6 下使能 7 已运行 8 继续运行 9 已报警 10 已暂停  11已停止 ,12 机械臂状态查询
        /// </summary>
        public double type { get; set; } = 0;
    }
    public class RobotMsg
    {
        private static RobotMsg instance;
        private RobotMsg() { }
        public static RobotMsg Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new RobotMsg();
                }
                return instance;
            }
        }
        /// <summary>
        /// 已开机
        /// </summary>
        public bool Robot_YKJ_L { get; set; } = false;
        /// <summary>
        /// 已上电
        /// </summary>
        public bool Robot_SD_L { get; set; } = false;
        /// <summary>
        /// 已使能
        /// </summary>
        public bool Robot_SN_L { get; set; } = false;
        /// <summary>
        /// 已运行
        /// </summary>
        public bool Robot_YX_L { get; set; } = false;
        /// <summary>
        /// 已暂停
        /// </summary>
        public bool Robot_ZT_L { get; set; } = false;
        /// <summary>
        /// 已报警
        /// </summary>
        public bool Robot_BJ_L { get; set; } = false;
        /// <summary>
        /// 已停止
        /// </summary>
        public bool Robot_TZ_L { get; set; } = false;
    }
    public class ClientList
    {
        public MessageClientList message { get; set; } = MessageClientList.Instance;
        public WuLiaoCoffeeSel MsgBol { get; set; } = WuLiaoCoffeeSel.Instance;
        public RobotMsg robotMsg { get; set; }
        /// <summary>
        /// 状态 0 单状态  1 冰淇淋状态  2 咖啡状态 ,3 机器人状态 ，4 咖啡机，5 冰淇淋 6咖啡制作，7冰淇淋制作 8奶茶制作 9泡茶制作,10 大屏状态,11.连接大屏  99 连接状态
        /// </summary>
        public int code { get; set; } = 0;
        /// <summary>
        /// 机器是否在制作中
        /// </summary>
        public bool IsMake { get; set; } = false;
    }
}
